package game.farming.model;

import java.util.Vector;

public class Product {
	String name;
	int costPerUnit;
	int pricePerUnit;
	
	public Product(String name) {
		this(name, 0, 0);
	}
	
	public Product(String name, int costPerUnit, int pricePerUnit) {
		this.name = name;
		this.costPerUnit = costPerUnit;
		this.pricePerUnit = pricePerUnit;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public int getCostPerUnit() {
		return costPerUnit;
	}
	
	public void setCostPerUnit(int costPerUnit) {
		this.costPerUnit = costPerUnit;
	}
	
	public int getPricePerUnit() {
		return pricePerUnit;
	}
	
	public void setPricePerUnit(int pricePerUnit) {
		this.pricePerUnit = pricePerUnit;
	}
	
	public static Product HAY = new Product("HAY", 1000, 40);
	public static Product GRAIN = new Product("GRAIN", 1000, 80);
	public static Product FRUIT = new Product("FRUIT", 1, 400);
	public static Product COWS = new Product("COWS", 0, 140);
	public static Product TRACTOR = new Product("TRACTOR");
	public static Product HARVESTOR = new Product("HARVESTOR");
	public static Product R1 = new Product("RIDGE1");
	public static Product R2 = new Product("R2");
	public static Product R3 = new Product("R3");
	public static Product R4 = new Product("R4");
	
	public static Vector<Product> PRODUCTS = new Vector<Product>();
	static {
		PRODUCTS.add(HAY);
		PRODUCTS.add(GRAIN);
		PRODUCTS.add(FRUIT);
		PRODUCTS.add(COWS);
		PRODUCTS.add(TRACTOR);
		PRODUCTS.add(HARVESTOR);
		PRODUCTS.add(R1);
		PRODUCTS.add(R2);
		PRODUCTS.add(R3);
		PRODUCTS.add(R4);
	}
}
